home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1997 August / Walnut Creek CDROM.7z / VOL_400 / 446_01 / DOC / DPBASICS / MV2 / POINT.C < prev    next >
Encoding:
C/C++ Source or Header  |  1996-04-18  |  217 b   |  10 lines

  1. #include <Point.h>
  2. Point& Point:: operator = (const Point& p)
  3. {
  4.   x=p.x; y=p.y; z=p.z;
  5.   return *this;
  6. }
  7.  
  8. Os& operator << (Os& os, const Point& p)
  9. { os << '(' << p.x << ',' <<  p.y << ',' <<  p.z << ')'; return os; }
  10.